HR - Employees - REST API
REST POST Compensation specification
This operation allows to send Compensation data to Taliris.
REQUEST
url: /rest/v1/hr/compensation
body: JSON format, containing all fields as below
Headers
The table below provide the details of the headers to be used when making the request.
| Header Name | Description |
|---|---|
| client_id | Client id having authorization to the endpoint(To be provided by DALI team) |
| client_secret | Client secret having authorization to the endpoint(To be provided by DALI team) |
Here is the format of the body that you should send:
{
"HEADER": {
"SOURCE_SYSTEM": {name of the source system},
"TARGET_SYSTEM": {fixed value "DALI"},
"TRANSACTION_ID": {functional identifier},
"COMPANY_CODE": {ROC company code},
"ANALYTICAL_CODE": {ROC BU code},
"REQUEST_DATE_TIME": {datetime when the message is sent},
"CORRELATION_ID": {technical ID used during all the transaction},
"FLOW_NAME": {fixed value "COMPENSATION"},
"DISPATCHING_KEY": {empty}
},
"PAYLOAD": {
"COMPENSATION_MASTER_DATA": {
"EMPLOYEE_ERP_ID": {ID of employee in the ERP source},
"NBR_MONTH_PAY_TH": {theoretical number of months},
"NBR_HOUR_PAY_TH": {theoretical number of hours},
"COMPANY_ERP_ID": {local code of the company (in the erp)},
"POTENTIAL_BONUS": {potential bonus},
"PAYMENT_DATE": {payment date - format 'YYYY-MM-DD'},
"UPDATE_DATE": {modication date - format 'YYYY-MM-DDTHH:MI:SSZ'},
"OSMOSE_CODE": {osmose Code in ROC},
"EFFECTIVE_DATE": {effective date - format 'YYYY-MM-DD'},
"CALENDAR_MONTH": {calendar month},
"PAYROLL_TRANSACTIONAL_DATA": [
{
"AMOUNT": {amount for each payment rubric},
"TOP_RUBRIC": {payroll section],
"ACCOUNTING_PERIOD": {accounting period},
"COMPUTATION_PERIOD": {computation period},
"CURR_ISO_CD": {currency ISO code},
"NBR_MONTH": {number of months},
"PAYROLL_START_DATE": {first day of the payment month - format 'YYYY-MM-DD'},
"TRANSFER_DATE": {payment date - format 'YYYY-MM-DD'},
"COUNTRY_ISO_CODE": {ISO code of the country},
"PAYROLL_TRANCHE": {payroll tranche},
"EFFECTIVE_DATE": {effective date - format 'YYYY-MM-DD'},
"PAYROLL_END_DATE": {end day for payment month - format 'YYYY-MM-DD'},
"PAYMENT_DATE": {end day of the payment month - format 'YYYY-MM-DD'},
"PERIODICITY": {Frequency of the series - Fixed value : MONTHLY_AMOUNT}
}
]
}
}
}RESPONSE
Here is the response format:
{
"ERROR": {
"CODE": {error code},
"DESCRIPTION": {error description},
"DETAILS": {error details}
}
}The different possible responses are:
| LEVEL | CODE | DESCRIPTION | DETAILS |
|---|---|---|---|
| Application | 0 | SUCCESS | SUCCESS |
| Technical | 500 | Remote Exception when calling the Service | error details |
| Technical | 401 | Authentication error | - |
MAPPING
Here are further informations on each field which is present in the request body:
| Block | Field | Type | Mandatory | Description | Example |
|---|---|---|---|---|---|
| HEADER | SOURCE_SYSTEM | string | Y | Name of the Global ERP SOURCE | AFAS_NL, SAGE_CIV, … |
| HEADER | TARGET_SYSTEM | string | Y | Fixed value : DALI | DALI |
| HEADER | TRANSACTION_ID | string | N | Functional Identifier | ab1251561-zdzdz2664-dz162262 |
| HEADER | COMPANY_CODE | string | Y | ROC Company code - identifies the transaction of the payload | N022 |
| HEADER | ANALYTICAL_CODE | string | N | ROC BU code - identifies the transaction of the payload | 30022 |
| HEADER | REQUEST_DATE_TIME | dateTime | Y | Time when the request was made - format 'YYYY-MM-DDTHH:MI:SSZ' | 2023-04-30T18:30:33Z |
| HEADER | CORRELATION_ID | string | Y | Technical unique identifier for each message | cb1251561-zdzdz2664-dz162262 |
| HEADER | FLOW_NAME | string | Y | Fixed value : COMPENSATION | COMPENSATION |
| HEADER | DISPATCHING_KEY | string | N | ||
| COMPENSATION_MASTER_DATA | EMPLOYEE_ERP_ID | string | Y | ID of the employee in ERP | 7012160 |
| COMPENSATION_MASTER_DATA | NBR_MONTH_PAY_TH | decimal | Y | Theoretical number of months | 12.5 |
| COMPENSATION_MASTER_DATA | NBR_HOUR_PAY_TH | decimal | Y | Theoretical number of hours | 15.67 |
| COMPENSATION_MASTER_DATA | COMPANY_ERP_ID | string | N | Local code of the company in ERP | F20 |
| COMPENSATION_MASTER_DATA | POTENTIAL_BONUS | decimal | N | Potential bonus | 5 |
| COMPENSATION_MASTER_DATA | PAYMENT_DATE | date | Y | Payment date - format 'YYYY-MM-DD' | 2019-03-28 |
| COMPENSATION_MASTER_DATA | UPDATE_DATE | dateTime | Y | Modification date - format : 'YYYY-MM-DDTHH:MI:SSZ' Rule: If HH:MM:SS is not present, 00:00:00 is hardcoded on our side | 2023-04-30T10:53:00Z |
| COMPENSATION_MASTER_DATA | OSMOSE_CODE | string | Y | Osmose code in ROC | 27934 |
| COMPENSATION_MASTER_DATA | EFFECTIVE_DATE | date | Y | Effective date - format 'YYYY-MM-DD' | 2015-01-01 |
| COMPENSATION_MASTER_DATA | CALENDAR_MONTH | string | Y | Calendar month - format 'YYYY-MM' | 201509 |
| PAYROLL_TRANSACTIONAL_DATA | AMOUNT | decimal | Y | Amount for each payment rubric | 600 |
| PAYROLL_TRANSACTIONAL_DATA | TOP_RUBRIC | string | Y | Payroll section: Allowed values : PRIX, SALBAS, BONUS | SALBAS |
| PAYROLL_TRANSACTIONAL_DATA | ACCOUNTING_PERIOD | string | Y | Accounting period - format 'YYYY-MM' | 201506 |
| PAYROLL_TRANSACTIONAL_DATA | COMPUTATION_PERIOD | string | Y | Computation period - format 'YYYY-MM' | 201506 |
| PAYROLL_TRANSACTIONAL_DATA | CURR_ISO_CD | string | Y | currency ISO code | EUR |
| PAYROLL_TRANSACTIONAL_DATA | NBR_MONTH | decimal | Y | Number of months | 1 |
| PAYROLL_TRANSACTIONAL_DATA | PAYROLL_START_DATE | date | Y | First day of the payment month - format 'YYYY-MM-DD' | 2016-01-01 |
| PAYROLL_TRANSACTIONAL_DATA | TRANSFER_DATE | date | Y | Payment date - format 'YYYY-MM-DD' | 2015-01-22 |
| PAYROLL_TRANSACTIONAL_DATA | COUNTRY_ISO_CODE | string | Y | ISO code of the country | NLD |
| PAYROLL_TRANSACTIONAL_DATA | PAYROLL_TRANCHE | string | N | payroll tranche | ZY |
| PAYROLL_TRANSACTIONAL_DATA | EFFECTIVE_DATE | date | Y | Effective date - format 'YYYY-MM-DD' | 2015-01-20 |
| PAYROLL_TRANSACTIONAL_DATA | PAYROLL_END_DATE | date | Y | End day of the payment month - format 'YYYY-MM-DD' | 2015-01-30 |
| PAYROLL_TRANSACTIONAL_DATA | PAYMENT_DATE | date | Y | End day of the payment month - format 'YYYY-MM-DD' | 2015-02-02 |
| PAYROLL_TRANSACTIONAL_DATA | PERIODICITY | string | Y | Frequency of the series - Fixed value : MONTHLY_AMOUNT | MONTHLY_AMOUNT |